//
//  SecondModel.m
//  NewMusic
//
//  Created by chuxinyu123 on 15/11/23.
//  Copyright © 2015年 Going. All rights reserved.
//

#import "SecondModel.h"

@implementation SecondModel
- (instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}

+ (SecondModel *)secondModelWithDictionary:(NSDictionary *)dictionary
{
    SecondModel *secondModel = [[SecondModel alloc] initWithDictionary:dictionary];
    return secondModel;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqual:@"singerId"]) {
        self.singerId = [NSString stringWithFormat:@"%@", value];
    }else if ([key isEqual:@"albumId"]){
        self.albumId = [NSString stringWithFormat:@"%@", value];
    }else{
        [super setValue:value forKey:key];
    }
}
@end
